// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import 'lib-flexible'
import store from '@/store/index'
import '@/assets/style/fn.scss'
import VueLoading from './plugin/loading'

Vue.use(VueLoading,{container:'#app'})

import { Tab,TabItem,ToastPlugin,XButton,Popup } from 'vux';
Vue.component('tab', Tab)
Vue.component('tab-item', TabItem)
Vue.component('x-button',XButton)
Vue.component('popup',Popup)
Vue.use(ToastPlugin);

Vue.config.productionTip = false;

Vue.prototype.$axios = axios;
Vue.prototype.stringify = require('qs').stringify;
Vue.prototype.BASE_URL = 'http://zc.wzgaolaozhuang.com'

import myDialog from '__cp/myDialog'
Vue.component('my-dialog', myDialog)

import myLoading from '__cp/myLoading'
Vue.component('my-loading', myLoading)

store.dispatch('checkLoginStatus')

/* eslint-disable no-new */
new Vue({
  router,
  render: h=>h(App)
}).$mount('#app');
